package com.zmj.framework.base.sql;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@ApiModel(description = "查询条件")
public class Query {

	@ApiModelProperty(value = "当前页",example="1")
	private Integer current;

	@ApiModelProperty(value = "每页的数量",example = "10")
	private Integer size;

	@ApiModelProperty(value = "排序方式",allowableValues = "ASC,DESC")
	private String order;

	@ApiModelProperty(value = "排序字段名")
	private String orderBy;

}